package com.hitqz.robot.api.business.enums;

import java.util.HashMap;

/**
 * @author xupkun
 * @date 2024/7/30
 */
public enum MapTypeEnum {

    MAP_2D("1", "2D地图"),

    MAP_3D("2", "3D地图"),
    //PB地图和2D类似
    MAP_PB("3", "PB地图"),

    MAP_QR("4","二维码地图"),

    MAP_TRACK("5","轨道虚拟地图")
    ;


    public final static HashMap<String, MapTypeEnum> CMD_MAP_TYPE = new HashMap<>();


    static {
        for (MapTypeEnum value : values()) {
            MapTypeEnum.CMD_MAP_TYPE.put(value.getCode(), value);
        }
    }

    private final String code;

    private final String desc;

    MapTypeEnum(String  code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
